package com.hyb.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 *  数据字典信息
 * </p>
 *
 * @author hyb
 * @since 2021-12-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tbl_dictionary")
@ApiModel("数据字典信息")
public class Dictionary implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "dictionary_id", type = IdType.AUTO)
    @ApiModelProperty("数据字典id")
    private Integer dictionaryId;
    @ApiModelProperty("父id")
    private Integer parentId;
    @ApiModelProperty("值")
    private String dictionaryValue;
    @ApiModelProperty("条目")
    private String dictionaryEntry;
    @ApiModelProperty("是否可编辑")
    private String isEdit;
    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    @ApiModelProperty("修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE,update = "now()")
    private LocalDateTime updateTime;
    @ApiModelProperty("修改次数")
    @Version
    private Integer version;


}
